package org.krishna.model;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "STATUS")
public class Status implements Serializable{
	
	/** The Constant serialVersionUID. */
	@Transient
	private static final long serialVersionUID = -7660824605183781430L;
	
	@Id
	@GeneratedValue
	@Column(name = "STATUS_ID")
	private long statusId;

	@Column(name = "STATUS_NAME")
	private String statusName;
	
	@OneToMany(fetch = FetchType.LAZY,mappedBy = "status")
	private Set<BookDetails> bookDetails;
	
	@OneToMany(fetch = FetchType.LAZY,mappedBy = "status")
	private Set<Verification> verification;

	/**
	 * @return the statusId
	 */
	public long getStatusId() {
		return statusId;
	}

	/**
	 * @param statusId the statusId to set
	 */
	public void setStatusId(long statusId) {
		this.statusId = statusId;
	}

	/**
	 * @return the statusName
	 */
	public String getStatusName() {
		return statusName;
	}

	/**
	 * @param statusName the statusName to set
	 */
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	/**
	 * @return the bookDetails
	 */
	public Set<BookDetails> getBookDetails() {
		return bookDetails;
	}

	/**
	 * @param bookDetails the bookDetails to set
	 */
	public void setBookDetails(Set<BookDetails> bookDetails) {
		this.bookDetails = bookDetails;
	}

	/**
	 * @return the verification
	 */
	public Set<Verification> getVerification() {
		return verification;
	}

	/**
	 * @param verification the verification to set
	 */
	public void setVerification(Set<Verification> verification) {
		this.verification = verification;
	}

}
